package com.dsg.controller;

import com.dsg.service.interfaces.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
@Api(value = "申请类型管理", tags = "基础信息-申请-申请类型管理", description = "申请类型管理")
public class TestController {

    @Autowired
    private TestService testService;

    @ApiOperation("测试接口")
    @ApiImplicitParam(name = "web-token", value = "登录凭证", required = true, paramType = "header")
    @GetMapping("/")
    public void test() {
        int num = this.testService.test();
        System.out.println("测试接口..." + num);
    }

}
